package com.reekr.a5t.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.reekr.a5t.dao.read.UserReadDao;
import com.reekr.a5t.model.User;
import com.reekr.a5t.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	UserReadDao userRD;
	
	@Override
	public User login(String loginName, String loginPass) {
		User user = userRD.getUserByLoginNameAndLoginPass(loginName, loginPass);
		return user;
	}

}
